package com.shujia.java.day18.demo2;
/** 
* @Description: MyThreadDemo1 Java实现多线程 通过Thread来实现按
* @Author: 王火火
* @Date: 2019/8/20 10:31
 *
 * 1.继承Thread
 * 2.重写run
 * 3.new 对象
 * 4.启动
*/ 
public class MyThreadDemo1 extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println(i);
        }
    }
}
